{% extends 'base.html' %}
{% from 'bootstrap/form.html' import render_form %}
{% block title %}BabyLog 添加Baby {% endblock %}
{% block content %}

<div class="jumbotron">



    <div class="babyform">
        {{ render_form(form, action=request.full_path) }}
    </div>

    {{ super() }}
    {{ ckeditor.load() }}
    <!-- <script type="text/javascript" src="{{ url_for('static', filename='ckeditor/ckeditor.js') }}"></script> -->
    {{ ckeditor.config(name='blog') }}


    {% for message in get_flashed_messages() %}
    <div class="alert alert-info">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        {{ message }}
    </div>
    {% endfor %}

</div>
{% endblock %}